package com.qmq.app.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UserPassword implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    @TableId
    private Long userId;
    /**
     * 用户名
     */
    @NotBlank(message = "原密码不能为空")
    private String passOld;
    /**
     * 手机号
     */
    @NotBlank(message = "新密码不能为空")
    private String passNew;
    /**
     * 手机号
     */
    @NotBlank(message = "确认新密码不能为空")
    private String passNewAffirm;
}
